package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_EQ_INITPARAM"
 *     
*/
public class CcpEqInitparam implements Serializable {

    /** identifier field */
    private String eipGuid;

    /** nullable persistent field */
    private String eqsGuid;

    /** nullable persistent field */
    private String eipCode;

    /** nullable persistent field */
    private String eipName;

    /** nullable persistent field */
    private String isStable;

    /** nullable persistent field */
    private String defaultValue;

    /** nullable persistent field */
    private String reserve1;

    /** nullable persistent field */
    private String reserve2;

    /** nullable persistent field */
    private String reserve3;

    /** full constructor */
    public CcpEqInitparam(String eipGuid, String eqsGuid, String eipCode, String eipName, String isStable, String defaultValue, String reserve1, String reserve2, String reserve3) {
        this.eipGuid = eipGuid;
        this.eqsGuid = eqsGuid;
        this.eipCode = eipCode;
        this.eipName = eipName;
        this.isStable = isStable;
        this.defaultValue = defaultValue;
        this.reserve1 = reserve1;
        this.reserve2 = reserve2;
        this.reserve3 = reserve3;
    }

    /** default constructor */
    public CcpEqInitparam() {
    }

    /** minimal constructor */
    public CcpEqInitparam(String eipGuid) {
        this.eipGuid = eipGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="EIP_GUID"
     *         
     */
    public String getEipGuid() {
        return this.eipGuid;
    }

    public void setEipGuid(String eipGuid) {
        this.eipGuid = eipGuid;
    }

    /** 
     *            @hibernate.property
     *             column="EQS_GUID"
     *             length="32"
     *         
     */
    public String getEqsGuid() {
        return this.eqsGuid;
    }

    public void setEqsGuid(String eqsGuid) {
        this.eqsGuid = eqsGuid;
    }

    /** 
     *            @hibernate.property
     *             column="EIP_CODE"
     *             length="30"
     *         
     */
    public String getEipCode() {
        return this.eipCode;
    }

    public void setEipCode(String eipCode) {
        this.eipCode = eipCode;
    }

    /** 
     *            @hibernate.property
     *             column="EIP_NAME"
     *             length="50"
     *         
     */
    public String getEipName() {
        return this.eipName;
    }

    public void setEipName(String eipName) {
        this.eipName = eipName;
    }

    /** 
     *            @hibernate.property
     *             column="IS_STABLE"
     *             length="1"
     *         
     */
    public String getIsStable() {
        return this.isStable;
    }

    public void setIsStable(String isStable) {
        this.isStable = isStable;
    }

    /** 
     *            @hibernate.property
     *             column="DEFAULT_VALUE"
     *             length="50"
     *         
     */
    public String getDefaultValue() {
        return this.defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVE1"
     *             length="100"
     *         
     */
    public String getReserve1() {
        return this.reserve1;
    }

    public void setReserve1(String reserve1) {
        this.reserve1 = reserve1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVE2"
     *             length="100"
     *         
     */
    public String getReserve2() {
        return this.reserve2;
    }

    public void setReserve2(String reserve2) {
        this.reserve2 = reserve2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVE3"
     *             length="300"
     *         
     */
    public String getReserve3() {
        return this.reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("eipGuid", getEipGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpEqInitparam) ) return false;
        CcpEqInitparam castOther = (CcpEqInitparam) other;
        return new EqualsBuilder()
            .append(this.getEipGuid(), castOther.getEipGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getEipGuid())
            .toHashCode();
    }

}
